<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="box">
        <mm> </mm>


    </div>
    <template id="box1">
        <div>
            123
            <p>{{msg}}</p>
        </div>
    </template>
    <script>
        const Com ={
            template:'#box1',
            data() {
                return {
                    msg:'消息'
                }
            },
        }
        Vue.component('mm',Com)
        new Vue({
            el:'#box'
        })
    </script>
</body>
</html>